<?php $this->load->view('inc/header.php');?>
<?php html_jscss('colorbox/colorbox.css');?>
<?php html_js('colorbox/jquery.colorbox.js');?>

<script type="text/javascript">$(function(){
    $('.cb-product').colorbox();
});</script>
<h2 class="t1">所有分类</h2>
<div class="catena" ><div class="inner">

  <div style="float:left;width:200px;">
    <div class="menu-cat">
      <?php foreach ($list = mlist('cat','*',array(),array('img_id|s'=>'images:id,l'),0,0,'','a') as $k => $v) :?>  
          <a class="
          <?php if(fd('p.id') == $v['id']):?>
          c
          <?php endif;?>
          " href="<?php echo site_url('c=product&m=cat&id='.$v['id']);?>">
              <table width="100%">
                <tr>
                  <td width="50px"><img width="40px" src="<?php echo $base_url.fd('v.img_id_row.l','na',$v);?>"/></td>
                  <td>
                        <?php echo $v['title'];?>
                  </td>
                </tr>
              </table>
          </a>
      <?php endforeach;?>
    </div>
  </div>
  
	<div style="float:left;width:690px;">
	<?php foreach ($list_product as $k => $v):?>
  <div style="float:left;width:200px;margin-right:30px;margin-bottom:20px;">
    <a class="cb-product" href="<?php echo fd('v.img_row.t','na',$v);?>" rel="group-<?php echo $k;?>">
    <img style="width:200px;" src="<?php echo fd('v.img_row.l','na',$v);?>"/>
    </a>
    <br/>
    <?php echo $v->no;?>
  <?php if(!empty($v->imgs_list)):?>  
    <div style="display:none;">
  <?php foreach ($v->imgs_list as $kk => $vv):?>
    <a class="cb-product" href="<?php echo fd('vv.t','na',$vv);?>" rel="group-<?php echo $k;?>">
    
    </a>
  <?php endforeach;?>
</div>
  <?php endif;?>
  </div>

	<?php endforeach;?><div style="clear:both;"></div>

	<div><?php echo $pagenav;?></div>
  </div>


  <div style="clear:both;"></div>
 
</div></div>

<?php $this->load->view('inc/footer.php');?>

<script>$(function(){
  $('.catena .item').hover(function(){
    $(this).removeClass('item');
    $(this).addClass('item-h1');
  },function(){
    $(this).removeClass('item-h1');
    $(this).addClass('item');
  });
});</script>

